#include "dotgraphview.h"

DotGraphView::DotGraphView(QImage &image) : QLabel(), pixHeight(700)
{
    setBackgroundRole(QPalette::Base);
    //setSizePolicy(QSizePolicy::Ignored, QSizePolicy::Ignored);
    //setScaledContents(true);
    pixmap = QPixmap::fromImage(image);    
    setPixmap(pixmap.scaledToHeight(700,Qt::SmoothTransformation));    
}

void DotGraphView::zoomToPixHeight()
{
    setPixmap(pixmap.scaledToHeight(pixHeight,Qt::SmoothTransformation));
}
